// components/rank-item/rank-item.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    itemDate: {
      type: Object,
      value: {}
    },
    key: {
      type: String
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goDetailSong() {
      const key=this.properties.key;
      console.log(key);
      wx.navigateTo({
        url: `/pages/detail_song/detail_song?type=ranking&key=${key}`,
      })
    }
  },
})